<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/iconfont.css">
<link rel="stylesheet" href="css/global.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/swiper.min.css">
<link rel="stylesheet" href="css/styles.css">
<script src="js/jquery.1.12.4.min.js" charset="UTF-8"></script>
<script src="js/bootstrap.min.js" charset="UTF-8"></script>
<script src="js/swiper.min.js" charset="UTF-8"></script>
<script src="js/global.js" charset="UTF-8"></script>
<script src="js/jquery.DJMask.2.1.1.js" charset="UTF-8"></script>
<title>U袋网</title>
</head>
<body>
	<!-- 引入个人中心头部 -->
	<jsp:include page="user-header.jsp"></jsp:include>

	<div class="content clearfix bgf5">
		<section class="user-center inner clearfix">
			<!-- 引入左侧导航栏 -->
			<jsp:include page="pull-left-bgf.jsp"></jsp:include>

			<div class="pull-right">
				<div class="user-content__box clearfix bgf">
					<div class="title">订单中心-我的收藏</div>
					<c:if test="${ empty USER_SESSION}">
						<h3>您还没有登录呦~</h3>
					</c:if>
					<c:if test="${ not empty USER_SESSION}">
						<div class="collection-list__area clearfix">
							<c:forEach items="${getWish }" var="getWish">
								<div class="item-card">
									<a href="getProTuiTypeId?proId=${getWish.proId }" class="photo">
										<img src="../admin/showPic/${getWish.proUrl }"
										alt="陇上乐原创传统日常汉服男绣花交领cp情侣非古装春秋" class="cover">
										<div class="name">${getWish.proName }</div>
									</a>
									<div class="middle">
										<div class="price">
											<small>￥</small>${getWish.currentPrice }
										</div>
										<div class="sale">
											<a href="javascript:;" data-oid="${getWish.ordDetId }"
												onclick="delDanWish(this)">取消收藏</a>
										</div>
									</div>
								</div>
							</c:forEach>

						</div>
					</c:if>
				</div>
			</div>
		</section>
	</div>
	<!-- 监听取消收藏 -->
	<script type="text/javascript">
	function delDanWish(obj){
		var ordDetId=$(obj).data("oid");
		$.post("deltWish",{"ordDetId":ordDetId},function(res){
			//console.log(res);
			alert(res.msg);
			window.location.reload();
		},"json")
	}
	</script>
	<!-- 引入右侧菜单 -->
	<jsp:include page="right-nav.jsp"></jsp:include>
	<!-- 底部信息 -->
	<!-- 引入脚部 -->
	<jsp:include page="footer.jsp"></jsp:include>
</body>
</html>